<?php
header("Access-Control-Allow-Origin: *");//允许跨域

define('PATH_BASE',__DIR__ . '/../');
define('PATH_COMPONENT',PATH_BASE . 'components/');
define('PATH_CONFIG',PATH_BASE . 'config/');
define('PATH_RUNTIME',PATH_BASE . 'runtimes/');
define('DEBUG',true);//调试开启


//var_dump(PATH_BASE,PATH_CONFIG,PATH_RUNTIME);die;
require(PATH_COMPONENT.'Register.php');
$config = require(PATH_CONFIG . '/main.php');

(new components\GlobalComponent)->run($config);
